package com.engine4cloud.tdf.supervision.feign;

import com.engine4cloud.tdf.common.core.constant.SecurityConstants;
import com.engine4cloud.tdf.common.core.constant.ServiceNameConstants;
import com.engine4cloud.tdf.common.core.util.R;
import com.engine4cloud.tdf.supervision.dto.SpAccessSpecificVerifyDTO;
import com.engine4cloud.tdf.supervision.dto.result.SpAccessSpecificResultDTO;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 审批-外出申请管理
 *
 * @author sh
 * @date 2024-08-02 15:07:07
 */
@FeignClient(contextId = "RemoteSpAccessSpecificService", value = ServiceNameConstants.SUPERVISION_SERVER)
public interface RemoteAccessSpecificService {
    /**
     * 查询矫正对象进入特定区域信息
     *
     * @return R
     */
    @PostMapping("/inner/access/specific/list")
    R<List<SpAccessSpecificResultDTO>> findListByPreActions(@Valid @RequestBody SpAccessSpecificVerifyDTO dto, @RequestHeader(SecurityConstants.FROM) String from);

}
